package com.petdog.module.auth.dto;

import javax.validation.constraints.NotBlank;

/**
 * 验证码登录请求DTO
 */
public class CodeLoginRequest {
    @NotBlank(message = "邮箱不能为空")
    private String email;
    
    @NotBlank(message = "验证码不能为空")
    private String verificationCode;
    
    /**
     * 是否记住登录，默认为false
     */
    private Boolean rememberMe = false;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getVerificationCode() {
        return verificationCode;
    }

    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    public Boolean getRememberMe() {
        return rememberMe;
    }

    public void setRememberMe(Boolean rememberMe) {
        this.rememberMe = rememberMe;
    }
    
    /**
     * 获取验证码（别名方法，用于兼容）
     */
    public String getCode() {
        return verificationCode;
    }
    
    /**
     * 设置验证码（别名方法，用于兼容）
     */
    public void setCode(String code) {
        this.verificationCode = code;
    }
}
